/* user.scss - 用户页面样式 */
page {
  letter-spacing: 1px;
  font-size: x-small;
  line-height: 1.5;
  background-color: #ffffff;
  color: #333333;
}

/* 页面容器 */
.page-container {
  width: 100%;
  min-height: 100vh;
  background-color: #ffffff;
}

/* 用户信息卡片 */
.user-card {
  width: 100%;
  background-color: #ffffff;
  padding: 0 15px;
  box-sizing: border-box;
}

/* 头像和操作按钮区域 */
.avatar-section {
  display: flex;
  margin-bottom: 15px;
}

.user-header{
	flex: 1;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #f0f0f0;
}

.user-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.follow-btn {
  padding: 6px 10px;
  background-color: #007aff;
  color: #ffffff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.message-btn {
  margin-left: 30rpx;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}

.edit-btn {
  padding: 4px 10px;
  border: 1px solid #007aff;
  color: #007aff;
  border-radius: 20px;
  font-size: 12px;
}

.apply-cert-btn {
  padding: 6px 20px;
  background-color: #ff6b35;
  color: #ffffff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* 用户基本信息 */
.user-info {
  width: 100%;
}

.user-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.desc {
  display: inline-flex;
  align-items: start;
  width: 100%;
}

.user-desc {
  width: 90%;
  letter-spacing: 0;
}

.desc image {
  flex: 1;
  height: 13px;
  text-align: right;
}


.user-id {
  color: #999999;
    margin-top: 5px;
    line-height: 1.5;
    padding: 1px 5px;
    width: fit-content;
    background-color: rgba(177, 174, 174, 0.3);
    border-radius: 4px;
}

/* 关注和粉丝信息 */
.follow-info {
  margin: 4px 0;
  color: #666666;
}

.number {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
}

/* 地区和IP信息 */
.location-info {
  color: #666666;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(226, 224, 224, 0.5);
}

/* 个人成就 */
.achievements {
  display: flex;
  flex-direction: column;
}

.achievement-item {
  line-height: 2.5;
}

.achievement-icon {
  width: 16px;
  height: 16px;
}

/* 作品统计 */
.stats-section {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-item {
  line-height: 2.5;
}

/* 兴趣标签 */
.interests {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.interest-tag {
  padding: 1.5px 5px;
  background-color: rgba(178, 222, 240, 0.753);
  color: #0059ff;
  border-radius: 2px;
}

/* 内容分类导航 */
.content-tabs {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.tab-scroll {
  width: 100%;
  white-space: nowrap;
  padding: 0 10px;
  box-sizing: border-box;
}

.tab-item {
  display: inline-block;
  padding: 16px 15px;
  font-size: 14px;
  color: #666666;
  position: relative;
}

.tab-item.active {
  color: #333333;
  font-weight: 500;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 3px;
  background-color: #007aff;
  border-radius: 3px;
}

.search-btn {
  display: inline-block;
  padding: 12px 15px;
  font-size: 16px;
}

/* 内容列表 */
.content-container {
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.article-item {
  width: 100%;
  padding: 15px 0;
  border-bottom: 1px solid #f5f5f5;
}

.article-content {
  width: 100%;
  margin-bottom: 10px;
}

.article-title {
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-preview {
  width: 100%;
}

.article-cover {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
}

.article-meta {
  width: 100%;
}

.article-stats {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: #999999;
}

/* 响应式设计调整 */
@media (max-width: 375px) {
  .avatar {
    width: 70px;
    height: 70px;
  }
  
  .follow-btn,
  .edit-btn,
  .apply-cert-btn {
    padding: 5px 16px;
    font-size: 13px;
  }
  
  .user-name {
    font-size: 17px;
  }
}

@media (max-width: 320px) {
  .user-actions {
    gap: 8px;
  }
  
  .message-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .tab-item {
    padding: 12px 10px;
    font-size: 13px;
  }
  
  .stats-section {
    gap: 10px;
  }
  
  .stat-item {
    font-size: 13px;
  }
}